# include <stdio.h>

int main(int argc, const char *argv[]) {
    int in = 0;
    int sum1 = 0;
    int count1 = 0;
    int sum2 = 0;
    int count2 = 0;
    while(1) {
        scanf("%d", &in);
        if(in == 0) {
            break;
        }
        if(in % 2 == 0) {
            sum2 = sum2 + in;  
            count2++;
        } else {
            sum1 = sum1 + in;  
            count1++;
        }
    }
    printf("共有%d个奇数，和为%d\n", count1, sum1);
    printf("共有%d个遇数，和为%d\n", count2, sum2);
    return 0;
}

